<template>
  <div>
    <el-card>
      <div class="card-header">
        <span>{{ title }}</span>
        <i class="el-icon-info"></i>
      </div>
      <div class="card-count">{{ count }}</div>
      <div class="card-charts">
        <!-- 具名插槽 -->
        <slot name="charts"></slot>
      </div>
      <div class="card-footer">
        <slot name="footer"></slot>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  name: "Deatil",
  props: ["title", "count"],
};
</script>

<style>
.card-header {
  display: flex;
  justify-content: space-between;
  color: #c7c4c4;
}
.card-count {
  padding: 10px 0;
  font-size: 18px;
}
.card-charts {
  height: 50px;
  line-height: 50px;
  font-size: 12px;
}
.card-footer {
  padding-top: 10px;
  border-top: 1px solid #c7c4c4;
}
</style>